<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/views/commons/taglibs.jsp" %>
<%@ taglib prefix="sys" tagdir="/WEB-INF/tags" %>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>系统logo管理页面</title>
    <jsp:include page="../../../commons/common.jsp"></jsp:include>
    <jsp:include page="../../../commons/common-add.jsp"></jsp:include>
    <script type="text/javascript"
            src="${basePath}/statics/modules/sys/system/js/logo_change.js"></script>
    <link href="${basePath}/statics/commons/css/commons.css" type="text/css" rel="stylesheet"/>
    <link href="${basePath}/statics/modules/sys/system/css/logo_change.css" type="text/css" rel="stylesheet"/>
</head>
<body>
<sys:message msgContent="${message}"/>
    <div  id="uploadArea" class="box-body"  style="margin:0 auto;">
                <form id="inputForm" action="save_infos" method="post" class="form-horizontal" enctype="multipart/form-data" >
                    <div class="top-form-element-margin">
                        <div class="row form-group" style="padding-left: 13%">
                            <label id="uploadImageLabel" for="uploadImage" class="btn btn-primary" ><span>选择图片</span></label>
                            <div class="col-sm-3" id="uploadImageDiv">
                                <img id="uploadPreview" style="width: 100px; height: 100px;" src="${basePath}/admin/sys/system/logo_img" alt="Image preview" />
                                <input id="uploadImage" type="file" name="logoImg" onchange="loadImageFile();"/>
                            </div>
                        </div>

                        <div class="row form-group">
                            <label for="logoName" class="col-sm-2 control-label label-style-middle" style="text-align: right">
                                <b style="color:red;">*</b>
                                平台名称
                            </label>
                            <div class="col-sm-3">
                                <input type="text" autofocus class="required form-control" id="logoName" name="logoName" value="${logoText}"/>
                            </div>
                        </div>

                        <div class="row form-group">
                            <label for="rightsText" class="col-sm-2 control-label label-style-middle" style="text-align: right">
                                <b style="color:red;">*</b>
                                版本信息
                            </label>
                            <div class="col-sm-3">
                                <input type="text" class="required form-control" id="rightsText" name="rightsText" value="${rightText}"/>
                            </div>
                        </div>
                        <button style="width: 30%;margin-left: 12%" class="btn btn-success">提交</button>
                    </div>
                </form>
    </div>

</body>
</html>
